package com.sxfq.loansupermarket.backsystem.modular.marketing.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.sxfq.loansupermarket.backsystem.modular.arrival.entity.CustomerInfo;
import com.sxfq.loansupermarket.backsystem.modular.marketing.entity.ReservationsInfo;
import com.sxfq.loansupermarket.backsystem.modular.marketing.entity.SearchReservationsInfo;

import java.util.List;

/**
 * 预约客户信息
 *
 * @author py
 * @Date 2018年4月19日23:15:54
 */
public interface IReservationsService {

    List<ReservationsInfo> selectPageListByQueryGetMap(Page<ReservationsInfo> page, SearchReservationsInfo searchTheTestInfo);

    List<ReservationsInfo> selectPageListByStatusMap(Page<ReservationsInfo> page, SearchReservationsInfo searchTheTestInfo);

    ReservationsInfo selectOneById(String reservationsId);

    int updateOneChannle();

    int reservationsUpdate(ReservationsInfo reservationsInfo);

    List<ReservationsInfo> reservationsExport(SearchReservationsInfo searchInfo);

    List<ReservationsInfo> selectOneByPhone(String customerPhone);

    int insert(ReservationsInfo info);

    int insert(CustomerInfo customerInfo);

    List<ReservationsInfo> getCustomerPhoneCount(ReservationsInfo info);

    List<ReservationsInfo> getCustomerPhoneCounts(String customerPhone);

    int getPhoneSharShipCount(ReservationsInfo info);

    List<ReservationsInfo> getBrCounts(String customerPhone);

    List<ReservationsInfo> selectOneByCp(List<CustomerInfo> customerInfoList, String customerPhone);

    int getUpdatePhoneCount(ReservationsInfo info);

//    int supplement(ReservationsInfo info);

    void delete(String id);

    int update(ReservationsInfo info);

    int adminUpdate(ReservationsInfo info);

    int supplementUpdate(ReservationsInfo info);

    int insertDelete(ReservationsInfo reservations);
}
